<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo22</title>
    <script src="https://unpkg.com/vue@next" ></script>
</head>
<body>
    <div id="app"></div>
   
</body>
<script>
    const app=Vue.createApp({ 
    data(){
        return{
            name:""
        }
    },
    methods:{

    },
    //双向数据绑定
    //用v-model
    template:`
        <div>{{name}}</div>
        <div> <input v-model="name" type="text"></div>
        ` 
    }) 
    const vm=app.mount("#app")

</script>
</html>